package com.IntelligentCommunity.community.api;

import com.IntelligentCommunity.common.core.constant.ServiceNameConstants;
import com.IntelligentCommunity.common.core.domain.R;
import com.IntelligentCommunity.community.api.factory.RemoteDistrictFallbackFactory;
import com.IntelligentCommunity.community.api.factory.RemoteVehiclesFallbackFactory;
import com.IntelligentCommunity.community.domain.DeployVehicles;
import com.IntelligentCommunity.community.domain.RealDistrict;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author：作者姓名
 * @Package：com.IntelligentCommunity.es.api
 * @Project：IntelligentCommunity
 * @name：RemoteEsPopulationService
 * @Date：2024/7/18 22:39
 */
@FeignClient(
        contextId = "remoteVehiclestService",
        value = ServiceNameConstants.COMMUNITY_SERVICE,
        fallbackFactory = RemoteVehiclesFallbackFactory.class,
        path = "/vehicles")
public interface RemoteVehiclestService {

    /**
     * 功能：车辆一键布控 熔断
     * @param deployVehicles
     */
    @PostMapping("/add")
    public void vehiclesAdd(@RequestBody DeployVehicles deployVehicles);

}
